<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'index.jsp' starting page</title>
<style type="text/css">
table {
	border: 1px solid black;
	border-collapse: collapse;
}

table thead tr th {
	border: 1px solid black;
	padding: 3px;
	background-color: #cccccc;
}

table tbody tr td {
	border: 1px solid black;
	padding: 3px;
}
</style>
	</head>
	<body>
		<center>
		<h3>人员管理</h3>
			<h3>
				<a href="/Struts2new/admin/list2.action">返回管理页面</a>
			</h3>
		</center>
		<table>
			<thead>
				<tr>
					<th>
						编号
					</th>
					<th>
						管理员姓名
					</th>
					<th>
						操作
					</th>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="Adminss">
					<tr>
						<td>
							<s:property value="aid" />
						</td>
						<td>
							<s:property value="aname" />
						</td>
						<td>
							<a
								href='<s:url action="adelete"><s:param name="aid" value="aid" /></s:url>'>
								删除</a>
						</td>
					</tr>
				</s:iterator>
			</tbody>
		</table>
	</body>
</html>